package com.zjw.server.service;

import com.zjw.server.socket.SessionContainer;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class RegisterService {

    @Resource
    private SessionContainer sessionContainer;

    @Scheduled(cron = "0,30 * * * * ? ")
    public void timer() {
        sessionContainer.retryNotifyRegister();
    }
}
